Repository navigation
fix(pm-stack): ready-for-agent install.sh preserves pending restart across failed clone (#4839) - #4844
Conversation
…cross failed clone (#4839) When the clone step fails after an npm upgrade, record a pending-restart marker (written on package change, cleared only after a verified restart/start) so the next run restarts instead of reporting the pinned version already running. Adds a clone-fail-retry regression case to test-install.sh.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 12 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Closes #4839.
When the
clonestep fails after an npm upgrade,install.shexited (set -e) with the new binary on disk and the old process serving — and the next run saw matching on-disk versions and reported the pinned version already running. This adds a pending-restart marker (${XDG_STATE_HOME:-~/.local/state}/ready-for-agent.pending-restart): written when the package changes, forcesservice_changedon the next run, cleared only after a verified restart/start. Timeout and error exits never clear it, so an unverified deployment always retries the restart.Tests:
bash pm-stack/ready-for-agent/test-install.sh— 6/6 pass, including the newclone-fail-retrycase (npm-ok / git-fail / retry restarts, no false no-op report, marker cleared). Negative control: new test against pre-fixinstall.shfails as expected.bash -nclean on both scripts.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.